update to use a counter