added query 7,8 9, but not tested yet