added input number fixing