started reimplementation of renderer