make prototypes proper