fixed script declaration