split to classes