fix method signatures in queries