added encoding with magic comment