re-adjusted start program and handled corner case; fixes #3