 assign algorithm 27 