d is not defined