added function queries