added function for series stuff.