building the skeleton