moving script declaration