this seems to fix the slowing down problem