algorithm 556 GIFs