tiny alteration to readProgram for readability