adjusted bug for num/ input