added debug for isOnCount