added global afterSet