improve format performance