change script to setScript