added Lin's Queries