changed render method