set critical values of h and s