changed output strings to string.format strings