Rewrite to ArrayBuffers
pure for