fixed small errors on output