encode works!