updated modify query