appending hash if missing