fixed bug in ``_simplify_single_line``; modified ``simplify_gpgp``