made some changes to option matching algo