swap training and validation order