by Mihalovski & Kvetko updated encoding