cleanup of initial template