adding render to code