exported unility functions to util.go