only printing one line