Define valid earlier in method