add comparisons, fix inspect functions saving to num vars