added different render method