fixing format method