refactoring persister both of timer and fixed size