corrects name of function call to invoke write to APM