added second empty lines check