updated querie statements