* fixed bounds checking