changed encoding to right