expanded hive function