trying to implement sequence.