purifying, fixing bugs