chaned layout into << and >>