added headed pattern