added new query alle functions