First attempt
fixed
First Purity Correction Attempt