added matrix setter