retriving using exhaustive search