removed deprecated function call