adapted for hive