decoder of bin data