applied med and sm classes and changed naming