move set_matrix