fixing writer for numbers