fixed the case condition, but removed the bounds checking for now