it passed the visual just fine just because i had all the stock parts in there including all the hoses and ish..but it didnt pass the sniffer. my CEL is on cuz of the O2 sensor. Replacing the primary O2 sensor should take care of the CEL and the smog?

thanks for the help mayn