changed ints to num