moved common template in