index: apply formatting