fixed nonrecognition of num