adding render method