adding set() method