added header and C to F conversion