added not function search to code