apply formatting