refactor
skeletonize