added logic in reload function in matrix2
added a finally in matrix3 function