use renderer passed instead of get from global