made some edits to duality