checked subset condition during gradient descent