changes in setProxy function