removed renderer options, just return styles
moved code where it belongs