confused by matrix assignment