time counting fix references #21