[FOLD] swap, alloc work