putting notes for function to explain what its doing