move out to util/.cc file