changed deprecated juce api calls