intensity integration and saving template done