update render method