and use a counter here