set nice method