[fix] run-length encoding