remove useless expressions