splits into classes