tidy up lines