modified order when loading matrix