removed deprecated function usage