fix #134 by using a gradient