remove unused alloc_cb
assert comes before variable order