working on the rendering engine