rewriting renderer, which is currently not working