remove deprecated function.