Trying to implement multi path gradient