query replaces read