reset-alert and readjust-tics refactorized