fixed counter bug, removed console