add a note
fix exception message to state correct range