added notes after changing code