def works