implementing 'or' query