try an encoding system