removed the check for out of bounds. Not being done properly