tlen should be a number