change displaying code in tutorial