updating master template