update inValid method