working on de-coding of the data