tried to undestand what is wrong with XHR whitout sucess