update all primitive related class