search on functions working