cleaned up getBufferFormat