work on data structures. fixing dot operator after [.