created classes for preprocessing