removed array length debug print