new quality3.py attempt
merge