revised for new tutorial