small modification of model3, to work also on linux computer