changes script type