added actual length function to note