quality selection
bug fix