finished the equations for linked dses