added enc methods