avoid creating empty lines