things compile, restore point
reorganized code and works