added the "mode" to the contract/relation/pom