moving the remaining code of adjusting quality to item classes