tmp working on implementing re search