working on renderbatch interface