adding keepcounter