very naive implementation for finding UCCs