upgraded juce code