changet digit variable name to character