added query for long