refine number input