apply styles