timer sample modified