created getNumeral and getDiff functions