added a hack for truncating number into 20 bit number