working on AOI (not in compile state for AOI)