added some prototypes.