I will change it to (d==1) for now.