fixes to calculating impulse