changed tutoral code