changed name from buffer to array.