editing this to just subtract char'0'