fixed output to proper way