load matrix before starting