trying to debug with encode