updated csv and errorclass