fix reaction calculation!