CHANGED:fixed up the encode warning