add resize digit method