changed preferences to tuple instead of list