solved bug with empty lines