added sample model override logic