shuffling around and building skeleton functions and structures