added contract to middles to middle layer stub