hooked up rendering, now working