changed prototypes to void for functions that did not return a value