make inner hash level zero based