moved code into style tags