close file
adding functions for inner hash