modified apn_exp and added apn_exp_dig