add a judge for the msg response