expand on max shift lenght