correct render method