slight adjustment to tutorial