little modification of hxx