handle_noncontig and remove test print statement