add perSecond functionality