fixed output printing