remove obsolete code
template cleanip