trying to get these queries right