script fails when implementing strict