added function to set strict mode.