partial refactor to inline styles