added matrix subscripting