it is better to use seq here.