timer and pattern updates