changed scan to a match