paths on functions