removing isValid method