tweaked runnable code