read the contract