-barrack and sorting