added a set function