update wrong base code in tutorial