differentiate of elastic and inelastic