added comments for matrix