get new range end after piping error