change the size of algorithm 1