editing /data for matrix creation