fixed error in searchplos and changes to iterate by 1000 instead of 500