handle when name is empty