reverted debug code