implementing more functions for the renderer