removed deprecated  function