modify update plist function