Added call to get_hp function in itr loop