implemented rest of reset adagrad iterations