put template in right place