removed forgotten and left over encoding step