started working on propagating pairwise constraints