now removes debugging lines