added preprocessing class