- refactored converting for NBT