added immutable comparison