remove deprecated function usage