bugfix: was putting same lines together