docs for render method