allocation now works

it is required to provide the initial buffer