replaced if tests in CKGE_TMP_replacements (l.1510dd) with  object