added fnp decoding and background color decoding