weighted gradient complete