add query exec and modify model