output displaying correctly