added render method.