additional run function added, bug fixed.