check semantics of operator[]

this is temporary implementation