clean up variable transfer