add note to function