change log logic