changed functional to 10 iterations to study convexity...