change after success to script