for fixing bug #21 convert headers