changed COMPASS to a set of tuples rather than a list of lists