working on apn and cgm