before interaction