magic encoding line