uploading closing values function