added query method