Atomic behavior during chemical reactions