Remove unecessery lines