multistep gradient working