add compare for dynamic and reflect