change computation from list to set