added enc step with weight