changing out [] for {}