corrected error; program skipped first instruction after exiting loop!
supressed debug info