starting position is a parameter