added query model