program exits if it cannot find a match