added type and rand to buffers