Removes useless lines