switching to tutorial code