added gradDescent