fixed accidentally left in debug code