added valid control