got rid of query deprication warning