old comparifier code