working on inner hash