inserted for loop for firing segments the max allowable time