finalized ss ddm sims - working code