shortened hpvars to make the db work properly
removed invalid if statement
removed invalid if statement