fixed the applyaccel stuff