implemented program variable parsing