change from square bracket notation to dot notation