handle single values and empty values