fixing counter v1.1