made those changes that clive1 suggested and it has so far seemed to fix the problem