minor mods to utility.h
problem 16 (finally)