small changes, now use the same buffer for instancing