add option to adjust the length