removing redundant name check