this program doesn't run on 2.0, modified to run on 1.5.1