fixing some boo boo in format function