exploring cycle encoding bug