prepare structure for prototypes