added restricion to counter