added something to make sure the render method does not start early