part d working correctly