only clears if name is filled