speed improvment for the script model_1_***