cleanup HEAD