bug where it counts newline