infer aget/aset use