update the use of the retrieveCurrentVector function