modify counter