correct query for methods