Foreland and Hinterland basins: what controls their evolution?