fixed my broken tablet queries