added query of data