CHANGED:applied the pursue function