added queries for path