tweaked the tutorial