tidying up spaces and lines