added parameter to fix first element of sequence