Improved solution for notes storing