make code simpler for tutorial