hash.c: get_instance_id function created