avoid NumberFormatException