check matches option before highlight