fixed search algorithm, added link to post