declare encoding correctly