removed superfluous (string); fixed if-does-not-exist bug