compare list of layers and tags