Trying to figure out wtf is wrong with the quality codes