cleanup and created template