now using a appendbuffer. next up would be culling and sorting