redefined paths as function