changed define to def