rearranged to add inline css