add array boundary check