added encoding