updated conditional to check for only decreasing quality scores