add load matrix function