stop using deprecated method on querys