part way through convert refactoring - won't compile