fixed endl bug in cout