modifying headers
moved prototypes to apporpriate headers: