added code to function file

fixed MAMP error for output of headers.