fixed bugs with skeletons for classes