added a timer check