re-styled as a set of utils