merge two ensure free space