removed debug code adding error