also handle single element case