now works correctly with ofApp