adding log for array size