combined methods
added period counter