merge; rebuilding functions to compute dual spaces