Function def updated