version with encoding problem