working out how everything fits together