finished main skeleton