added comments to each_type method