removed a lot of debug print() statements