fixed bugs, added accel