bad decode, trying to solve