improved histdel pattern