changed num to a number