new template for comparsion for objects and contracts