fixing compilation errors as the utility module