trimmed script