removal of uneccesary lines