link contracts to previous contracts