move search function into the jasonBoomerang function