fixed numbering bug in main