modify same as template