improve julia quality, rename D -> grad