new functionality to test different lengths of training sequences