added two-time env, attempts
improved double env
counter example code