extract values script