working on renderer class