modified the procedure that generates the header files