removed deprecated function