remove mid cout of endl