make hrs conditional