added broken pagination query