added count over period functionality
clean up