changed position setRequestHeader