addgradient & bugfix