move free space of dest into a method