changed types, finished cond, finished get_LCA