outsourced map utility funcs into utilities.h