search works with both parameters