added length and starting point input