removing unnecessary xhr