added encoding statement