commented out many debug outputs