updated last query