tuned up the production script