renamed update-qualities -> update-quality, revised  with if-let