algorithm 1152