deleted useless dead-end code in query_sources