changes made in encode