code cleanup of unnecessary format method