abstracted the running sequence