added errorstatement to classes.loadSeries