relocate query cycle