pass WriteInfo to callback function