updatng code for depreciated paths