added automated protection on h and hh