please extract a function for "getSkeletonBase" or something