corrected fun def