tested and added abilithy to process dm and stars independently