Change method of checking definition