apply formatting styles