remove loop expressions