added global counter, removed initial instances