added prototypes to .h