added buffer util