what would cause codes p0171 and code 404 on my pontiac aztek on 2001 Pontiac Aztek

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
after changing the acm sensor,gas cap, and purge valve,also changed the plugs and wires
(1) Answer
Code p0171 is usually caused by a vacuum leak somewhere on bank 1. Check gaskets, seals, and especially vacuum hoses for damage to cause this problem.