moved rendering to our new render