incorrect programIndex programData.length comparison