remove function from object property