debugging out of bound crash