fixed #31 removed debug code