add debug statement to run function