attempting to fix motion simulation