new enc and dec