replaced [] with get