working on encoding problem is better now