added function for decoding the fixed header