compare labelled structures