notes added for clarity