fix error and use utility wrapper log adfunction