H-bond plays key role in the synthesis of stable hemiaminals