added functions for recovering timer1&3