added setMethod for request