Spectroscopy of the extended emission associated with two high-z quasars