add utility code