w=d-w