can handle shuffle query