valid number reimpl