add simple logic to  hpt