wrapped debug, removed bug