removing the used template