dividing to sets