refactoring of period
style