still refactoring ctr stuff