adopt to new render method