script at end and altered file