check prototypes