added hsbt.c