edited note function