a modularized version of microhoods