first loop proto and hive