implemented the format argument