fix prototypes