added empty line matching