Added  function and removed  dep