added todo for possible error message
hqb main functions defined