fixed script and document