added behead and curtail