added enc step