apply style formatting