added if stmts for obj1 merge