made some Log.d(). Trying to find the out of index error