changed nulltoS to maybeIntToS