removing unecessary empty lines