change global path to returning paths