changed renderer constructor