improved generics so you can pass series as list<Double> for example