updating style to code