clean common template