corrected method name of draw() to render()