update primitive related class