add find density marix from raw data