switched dot notation to brackets