some quer manipulations