change declaration of apn agent