fixing empty line skip