add a name check condition