traning works but result order is wrong