almost there on linear gradients