add callback to function args