Switching length min and max