operation to compare 2 sequence layers done