added handling for empty home district