added noncontig mode