added encoder converter