adding update node meta funtion to factory