removing unnecessary class attributes