changed global counter