changed test and removed debug code