if (curr[0] == null) {
                series = -((Integer) prev[0]).intValue();
            }
            else {
                series = ((Integer) curr[0]).intValue();
                if (series < 0) {
                    series = -((Integer) prev[0]).intValue();