bug fix: unsigned int subp=0