removed timing function, defined timer division and period