combine build and render method