custom query init