up replace script