adding automatic interval cycling