styling changes + fixed encoding bug