added direction boolean
Fixes reaction direction bug.