some utility and code segment