another mod to the 'set' method