modified chat model