replace script