fix isValid method