fix deprecation warnings (use [] instead of {})