adds set function
adds set property to object