removed -1 in the program area to make it work