changed headland from boolean to int