possibly fixed a bug in the acceleration