working towards queries