add main cycle sequence