changed the way Render works