included check for validity