added function prototypes to header