completed compare script