work on out of bounds exceptions in RS.