remove head dir