preparing type size and parent class