move branches in allocator