Removed indexOutofBound Exception