moving script code