rigorous array indexing update
Helper.java updated