added return query