if it's the first time run changes from the begining else use the last
sequence