add append 0 to padding in typeSetFunction