modified return of set method