added notes in the function I'm working in