debug print bugfix