string checking instead of definition checking?