updated query1