debug output moved to comments;