Matrix handeling for new matrices