add cycle counter